package com.eian.boot.module.common.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 更新ID号段配置请求
 *
 * @author alex.meng
 */
@Data
@Schema(description = "更新ID号段配置请求")
public class UpdateIdSegmentRequest {

    @NotBlank(message = "业务类型不能为空")
    @Schema(description = "业务类型标识", example = "order")
    private String bizType;

    @Min(value = 0, message = "最大ID不能小于0")
    @Schema(description = "当前已分配的最大ID", example = "0")
    private Long maxId;

    @Min(value = 1, message = "步长必须大于0")
    @Schema(description = "每次获取的步长", example = "1000")
    private Integer step;

    @Schema(description = "业务描述", example = "订单ID号段")
    private String description;
}

